/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

package 练习.工资系统;

public class MyDate {

    private int year=2000;
    private int month=01;
    private int day=01;

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

//    {
//        year++;
//        month++;
//        day++;
//    }


    public int getYear() {
        return year;
    }

    public int getMonth() {
        return month;
    }

    public int getDay() {
        return day;
    }

    public String toDateString(){
        return year+"年"+month+"月"+day+"日";
    }
}
